<?php
$oJobs = JobHandler::getJobs();
$oMissions = $oJobs[$_SESSION['iJobID']]->getMissions();
$oMissionWork = $oMissions[$_REQUEST['iMissionID']]->getWork();
$oUsers = UserHandler::getUsers();
?>
<table style="width: 100%;" cellspacing="0">
	<tr>
		<td class="clear">
			<table style="width: 100%;" cellspacing="0">
				<tr>
					<td class="listtop center"><?php print msg('Written') ?></td>
					<td class="listtop center"><?php print msg('User') ?></td>
					<td class="listtop center"><?php print msg('Times') ?></td>
					<td class="listtop center"><?php print msg('Timing') ?></td>
				</tr>
	<?php
	for ($i = 0; $i < count($oMissionWork); $i++)
	{
		?>
				<tr>
					<td class="listentity small vtop center"><?php print coolDate($oMissionWork[$i]->iTiming) ?></td>
					<td class="listentity small vtop center"><a href="viewuser.php?iUser=<?php print $oMissionWork[$i]->iUser ?>"><?php print $oUsers[$oMissionWork[$i]->iUser]->sUser ?></a></td>
					<td class="listentity small vtop center"><?php print calcHours($oMissionWork[$i]->iDuration, true) ?></td>
					<td class="listentity small vtop center"><?php print coolMonth($oMissionWork[$i]->iStartTime) ?></td>
				</td>
		<?php
	}
	?>
			</table>
		</td>
	</tr>
	<tr>
		<td class="boxbody center">
			<input type="button" value="<?php print msg('Close') ?>" onClick="layerHide('layer_mission_show');">
		</td>
	</tr>
</table>
